package HuaWeiPractice;

import java.util.Scanner;

/**
 * created by ysy 2022/3/6 15:32
 *写出一个程序，接受一个正浮点数值，输出该数值的近似整数值。如果小数点后数值大于等于 0.5 ,向上取整；小于 0.5 ，则向下取整。
 * @author 杨双洋
 * @version 1.0
 * @Email Yangsybd@163.com
 */
public class FloatToInt {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double aDouble = scanner.nextDouble();
        System.out.println((int)(aDouble+0.5));
    }
}
